package cn.koala.key.stock.controller;

import cn.koala.key.stock.domain.vo.EnterStockDetailVO;
import cn.koala.key.stock.service.EnterStockDetailService;
import cn.ehi.authority.annotation.WebAuthentication;
import cn.seed.common.core.Result;
import cn.seed.common.core.ResultGenerator;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:入库明细
 * @author 32415
 * @time 2019/04/28
 **/
@RestController
@Api(value = "EnterStockDetail",tags = "入库明细")
public class EnterStockDetailController {

    @Autowired
    private EnterStockDetailService enterStockDetailService;

    @ApiOperation(value = "入库详情(编辑)")
    @GetMapping("/enter-stock/detail")
    @WebAuthentication(systemCode = "KoalaKey",moduleIds = "KOALAKEY_B_00011")
    public Result<EnterStockDetailVO> selectDetail(@RequestParam String orderNo) {
        return enterStockDetailService.selectDetail(orderNo);
    }

}
